package com.chen.controllers;

import net.paoding.rose.web.annotation.Param;
import net.paoding.rose.web.annotation.Path;
import net.paoding.rose.web.annotation.rest.Get;
import net.paoding.rose.web.annotation.rest.Post;

import org.springframework.web.multipart.MultipartFile;

@Path("")
public class CRUDController {

	@Get("/crud")
	public String crud() {
		return "list";
	}

	@Get("/swfupload")
	public String upload() {
		return "swfupload";
	}

	@Post("/doSwfUpload")
	public String doUpload(@Param("Filedata") MultipartFile file) {
		return "@ upload ok!" + file.getOriginalFilename();
	}

}
